﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace Runda.CMS.Order.Entity
{
    [Table(Name = "Out_RdRecord")]
    public class ShippingRequestDetail
    {
      
        [Column(Name = "cVouchId", DbType = "VarChar(30) NOT NULL", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public String requestID { get; set; }

        [Column(Name = "cDate", DbType = "VarChar(10)", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public String cdate { get; set; }

        [Column(Name = "cCusCode", DbType = "nvarchar(10)", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public String customerId { get; set; }

        [Column(Name = "cInvBarCode", DbType = "VarChar(20)", CanBeNull = false, UpdateCheck = UpdateCheck.Never)]
        public String inventoryId { get; set; }

        [Column(Name = "cBatchCode", DbType = "VarChar(10)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String batchCode { get; set; }

        [Column(Name = "cVDate", DbType = "VarChar(10)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String vDate { get; set; }

        [Column(Name = "cFlag", DbType = "VarChar(1)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String flag { get; set; }

        [Column(Name = "iUnit", DbType = "int", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public decimal unit { get; set; }

        [Column(Name = "iQuantity", DbType = "decimal(20,4)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public decimal quantity { get; set; }

        [Column(Name = "iSQuantity", DbType = "decimal(20,4)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public decimal sQuantity { get; set; }

        [Column(Name = "cMemo", DbType = "varchar(200)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String memo { get; set; }

        [Column(Name = "cOrderId", DbType = "varchar(80)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String orderID { get; set; }

        [Column(Name = "cBill", DbType = "varchar(50)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String bill { get; set; }

        [Column(Name = "cNewTime", DbType = "varchar(16)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String newTime { get; set; }

        [Column(Name = "cScanDate", DbType = "varchar(80)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String scanDate { get; set; }

        [Column(Name = "DataSource", DbType = "int", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public int datasource { get; set; }

        [Column(Name = "cInvM_Unit", DbType = "varchar(50)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String invUnit { get; set; }

        [Column(Name = "cInvName", DbType = "varchar(200)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String invName { get; set; }

        [Column(Name = "cInvStd", DbType = "varchar(100)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String invStd { get; set; }

        [Column(Name = "cCustomerName", DbType = "varchar(200)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String CusName { get; set; }

        [Column(Name = "cStatus", DbType = "varchar(50)", CanBeNull = true, UpdateCheck = UpdateCheck.Never)]
        public String Status { get; set; }


        
    }
}
